package com.realjinge.entity;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * 
 * @author realjinge
 *
 */
public class Question implements Serializable {
	private static final long serialVersionUID = 1L;

	private Integer id;
	private String typeCode;
	private String questionNo;
	private String questionContent;
	private String answer;
	private String questionDesc;
	private String status; // 状态
	private String creator; // 创建人
	private String createTime; // 创建时间
	private String userName; // 编辑人（最后修改人）
	private String editTime; // 最后编辑时间

	// 赋值用
	private List<Answer> answerList = new ArrayList<Answer>();

	public Question() {

	}

	public Question(String typeCode, String questionNo, String questionContent, String answer, String questionDesc,
			String status, String creator, String createTime, String userName, String editTime) {
		this.typeCode = typeCode;
		this.questionNo = questionNo;
		this.questionContent = questionContent;
		this.answer = answer;
		this.questionDesc = questionDesc;
		this.status = status;
		this.creator = creator;
		this.createTime = createTime;
		this.userName = userName;
		this.editTime = editTime;
	}

	public Question(Integer id, String typeCode, String questionNo, String questionContent, String answer,
			String questionDesc, String status, String creator, String createTime, String userName, String editTime) {
		this.id = id;
		this.typeCode = typeCode;
		this.questionNo = questionNo;
		this.questionContent = questionContent;
		this.answer = answer;
		this.questionDesc = questionDesc;
		this.status = status;
		this.creator = creator;
		this.createTime = createTime;
		this.userName = userName;
		this.editTime = editTime;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getTypeCode() {
		return typeCode;
	}

	public void setTypeCode(String typeCode) {
		this.typeCode = typeCode;
	}

	public String getQuestionNo() {
		return questionNo;
	}

	public void setQuestionNo(String questionNo) {
		this.questionNo = questionNo;
	}

	public String getQuestionContent() {
		return questionContent;
	}

	public void setQuestionContent(String questionContent) {
		this.questionContent = questionContent;
	}

	public String getAnswer() {
		return answer;
	}

	public void setAnswer(String answer) {
		this.answer = answer;
	}

	public String getQuestionDesc() {
		return questionDesc;
	}

	public void setQuestionDesc(String questionDesc) {
		this.questionDesc = questionDesc;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getCreator() {
		return creator;
	}

	public void setCreator(String creator) {
		this.creator = creator;
	}

	public String getCreateTime() {
		return createTime;
	}

	public void setCreateTime(String createTime) {
		this.createTime = createTime;
	}

	public String getUserName() {
		return userName;
	}

	public void setUserName(String userName) {
		this.userName = userName;
	}

	public String getEditTime() {
		return editTime;
	}

	public void setEditTime(String editTime) {
		this.editTime = editTime;
	}

	public List<Answer> getAnswerList() {
		return answerList;
	}

	public void setAnswerList(List<Answer> answerList) {
		this.answerList = answerList;
	}

	@Override
	public String toString() {
		return "Question [id=" + id + ", typeCode=" + typeCode + ", questionNo=" + questionNo + ", questionContent="
				+ questionContent + ", answer=" + answer + ", questionDesc=" + questionDesc + ", status=" + status
				+ ", creator=" + creator + ", createTime=" + createTime + ", userName=" + userName + ", editTime="
				+ editTime + "]";
	}

}
